package com.company.common.function.interceptor.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/interceptor")
public class InterceptorController {
    @GetMapping("/home/open/info")
    public String home() {
        return "欢迎 登录 首页";
    }

    @GetMapping("/user/interceptor")
    public String interecptor() {
        return "我被拦截了并通过了拦截器";
    }

    @GetMapping("/open/unLogin")
    public String getUnLogin() {
        return "登录失效，请重新登录";
    }
}
